--
-- Author: shunguo.chen
-- Date: 2018-07-30 20:06:05
--
-- TheatreSession 大剧院队伍信息

local fileName = string.getModeName(...)
local ClassRef = class(fileName)

function ClassRef:ctor(data)
	if data then
		self:init(data)
	end

	self.myPercent = 100
	self.enemyPercent = 100
end

-- //奇迹歌剧院PVE信息
-- message PVESessionInfo {
-- 	int32	 sessionID      			= 1;//ID
-- 	int32 	 theatrePoolID	   			= 2;//奇迹歌剧院战斗池ID
-- 	int32    winTeamID		   			= 4;//获胜队伍ID
-- }
function ClassRef:init(data)
	self.sessionID = data.sessionID
	self.theatrePoolID = data.theatrePoolID
	self.winTeamID = data.winTeamID
end

function ClassRef:isMyWin()
	return self.winTeamID == self._myTeamId
end

function ClassRef:setMyTeamId(teamId)
	self._myTeamId = teamId
end

function ClassRef:updateMyBossHp(myPercent)
	self.myPercent = myPercent
end

function ClassRef:updateEnemyBossHp(enemyPercent)
	self.enemyPercent = enemyPercent
end

return ClassRef